Skip to content

Conversation

@mochman
Copy link
Contributor

@mochman mochman commented Jan 30, 2026

Proposed Changes

This PR changes the direct.gtpl file to separate http2 from the listen ... line to a separate line http2 on;

Will get rid of the the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/servers/direct.conf:3 warning in the logs.

Related Issues

#2172

Summary by CodeRabbit

  • Chores
    • Reorganized HTTP/2 configuration settings for improved clarity.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

Walkthrough

An nginx template configuration is updated to relocate the HTTP/2 parameter from the listen directive to a separate http2 statement, preserving functional behavior while adjusting syntax placement.

Changes

Cohort / File(s) Summary
Nginx HTTP/2 Configuration
node-red/rootfs/etc/nginx/templates/direct.gtpl
Moved http2 parameter from inline listen directive to dedicated http2 on; directive in the non-SSL server block, altering syntax structure without changing functionality.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A config so clean, reorganized with care,
HTTP/2 moves with a rabbit's flair,
From listen's embrace to its own special line,
Nginx takes shape, now perfectly fine!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: updating nginx http2 configuration from deprecated syntax (listen directive parameter) to the new recommended syntax (standalone http2 directive).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@frenck frenck added the bugfix Inconsistencies or issues which will cause a problem for users or implementors. label Feb 6, 2026
Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mochman 👍

../Frenck

                       

Blogging my personal ramblings at frenck.dev

@frenck frenck merged commit 95b37b3 into hassio-addons:main Feb 6, 2026
13 checks passed
@frenck frenck mentioned this pull request Feb 6, 2026
@mochman mochman deleted the http2-fix branch February 6, 2026 11:52
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix Inconsistencies or issues which will cause a problem for users or implementors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants